 
<?php

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CTourTableDraw.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");

if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }

$idTrans =$_GET['codigo'];

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDTour/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();

  
    $val_transporte = array (":required",":url",":email");
    $transporte = array("NamEmp"=>"Nombre de la empresa","WebPagEmp"=>"Página web");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$transporte,"transporte","idTrans",$idTrans,$val_transporte);
    

    $val_ctransporte = array (":required",":required");
    $ctransporte = array("FirstConEmp"=>"Nombre del contacto","LastConEmp"=>"Apellido del contacto");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$ctransporte,"transporte","idTrans",$idTrans,$val_ctransporte);
    
    
    $val_ttransporte = array (":integer",":integer",":integer");
    $ttransporte = array("PhoEmp"=>"Teléfono","FaxEmp"=>"Fax","CodPosEmp"=>"Código Postal");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$ttransporte,"transporte","idTrans",$idTrans,$val_ttransporte);
    
    CDrawPageReg::getInstance()->DrawSubmmit("Actualizar");
?>